CPLUS_INCLUDE_PATH:=../msvc_headers/atlmfc:../msvc_headers/vs2010:../msvc_headers/psdk

CXX = i686-w64-mingw32-g++
DEFINES = -D_ATL_MIXED

INCLUDE=-I../headers 

OBJ = authorize.o AtlThunk.o ScriptFunc.o

all : $(OBJ) \
	ApiHook 

authorize.o : authorize.cpp
	$(CXX) -c -o$@ $<

AtlThunk.o : AtlThunk.cpp
	$(CXX) -c -o$@ $<

ScriptFunc.o : ScriptFunc.cpp
	$(CXX) $(DEFINES) $(INCLUDE) -c -o$@ $<

clean : 
	-rm $(OBJ)

ApiHook :
	make -C $@

.PHONY : all clean
